package com.developer.platform.infrastructure.data.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.developer.platform.infrastructure.enums.StatusEnum;
import com.veeker.mybatis.basic.BaseEntity;
import java.util.Date;

/**
 * @author ：qiaoliang
 * @date ：2020-11-10
 */
@TableName(value = "sys_notice",autoResultMap = true)
public class Notice extends BaseEntity<Long,Long> {
    /** 群ID **/
    private Long groupId;
    /** 模板ID **/
    private Long templateId;
    /** 更新内容 **/
    private String contents;
    /** 更新说明连接 **/
    private String urls;
    /** 更新时长（分钟） **/
    private int duration;
    /** 更新方式（停服Y，不停服N） **/
    private StatusEnum mode;
    /** 数据库是否已变动 **/
    private StatusEnum dataChanged;
    /** 上线时间 **/
    private Date onlineTime;
    /** 反馈时间 **/
    private int feedback;
    /** 风险等级 **/
    private int risk;
    /** 状态 **/
    private StatusEnum status;
    /** 推送时间 **/
    private Date pushTime;

    public Notice() {
    }

    public Notice(Long id) {
        super(id);
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Long getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Long templateId) {
        this.templateId = templateId;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }

    public String getUrls() {
        return urls;
    }

    public void setUrls(String urls) {
        this.urls = urls;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public StatusEnum getMode() {
        return mode;
    }

    public void setMode(StatusEnum mode) {
        this.mode = mode;
    }

    public StatusEnum getDataChanged() {
        return dataChanged;
    }

    public void setDataChanged(StatusEnum dataChanged) {
        this.dataChanged = dataChanged;
    }

    public Date getOnlineTime() {
        return onlineTime;
    }

    public void setOnlineTime(Date onlineTime) {
        this.onlineTime = onlineTime;
    }

    public int getFeedback() {
        return feedback;
    }

    public void setFeedback(int feedback) {
        this.feedback = feedback;
    }

    public StatusEnum getStatus() {
        return status;
    }

    public void setStatus(StatusEnum status) {
        this.status = status;
    }

    public int getRisk() {
        return risk;
    }

    public void setRisk(int risk) {
        this.risk = risk;
    }

    public Date getPushTime() {
        return pushTime;
    }

    public void setPushTime(Date pushTime) {
        this.pushTime = pushTime;
    }
}
